<div align="center" class="information"></div>
<table class="titrepage" width="1000px">
    <tr>              
        <td><a class="titrea" href="<?php echo site_url('contenu')?>">La liste des Contenu</a></td>
        <td><a class="titrea" href="<?php echo site_url('contenu/add_content')?>">Post Content</a></td>
        <td align="right">Total | <?php echo $this->db->count_all('content');?></td>
    </tr>
</table>
<br/>
<table class="list"   width="100%">
    <thead>
        <tr>
            <th width="110px">Img</th>
            <th>Full Name</th>
            <th>Date of birth</th>
            <th>Date leave</th>
            <th>Update as paid</th>
            <th width="100px">Modification</th>
            <th width="100px">Suppression</th>    
        </tr>
        <?php foreach ($query as $aRow):?>
        <tr>
            <td><img src="<?php echo base_url().'/assets/thumbs/'.$aRow['image']; ?>" width="90" height="60" alt="" ></td>
            <td><?php echo $aRow['prename'].' '.$aRow['name'];?></td>
            <td><?php echo $aRow['birthday'];?></td>
            <td><?php echo $aRow['death'];?></td>
            <td>
                <?php if($aRow['is_paid']==0){?>
                <a href="<?php echo site_url('contenu/activate_news'.'/'.$aRow['id_content']).'/'.$per_page.'/'.$off_set;?>">activate</a>
                <?php } else{?>
                <a href="<?php echo site_url('contenu/deactivate_news'.'/'.$aRow['id_content']).'/'.$per_page.'/'.$off_set;?>">deactivate</a>
                <?php }?>
            </td>
            <td><a href="<?php echo site_url('contenu/edit_content/').'/'.$aRow['id_content'];?>">Modification</a></td>
            <td><a href="<?php echo site_url('contenu/delete_content/').'/'.$aRow['id_content'].'/'.$per_page.'/'.$off_set;?>" onclick="return confirm('Are you sure?')">Delete</a></td>
        </tr>    
        <?php endforeach;?>
        <tr>
            <td colspan="6"><?php echo $pagination?></td>
        </tr>
    </thead> 
    <tbody>
    </tbody>
</table>
